﻿namespace WMS6.Web.InventoryMgtServiceRef
{
    using System;
    using System.CodeDom.Compiler;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Runtime.CompilerServices;
    using System.Runtime.Serialization;

    [Serializable, DataContract(Name="TransferInfo", Namespace="http://schemas.datacontract.org/2004/07/WMS6.DataEntity"), GeneratedCode("System.Runtime.Serialization", "3.0.0.0"), DebuggerStepThrough]
    public class TransferInfo : IExtensibleDataObject, INotifyPropertyChanged
    {
        [OptionalField]
        private string CreatedByField;
        [OptionalField]
        private DateTime CreatedDateField;
        [NonSerialized]
        private ExtensionDataObject extensionDataField;
        [OptionalField]
        private string FromOwnerIDField;
        [OptionalField]
        private string GenIsInChargesField;
        [OptionalField]
        private string GenOtChargesField;
        [OptionalField]
        private string IsActiveField;
        [OptionalField]
        private decimal OpenQtyField;
        [OptionalField]
        private string RemarkField;
        [OptionalField]
        private int RowIDField;
        [OptionalField]
        private string StatusField;
        [OptionalField]
        private string ToOwnerIDField;
        [OptionalField]
        private DateTime TransferDateField;
        [OptionalField]
        private List<TransferDetailInfo> TransferDetailInfosField;
        [OptionalField]
        private string TransferIDField;
        [OptionalField]
        private string TransferTypeField;
        [OptionalField]
        private byte[] TsField;
        [OptionalField]
        private string Udf1Field;
        [OptionalField]
        private string Udf2Field;
        [OptionalField]
        private string Udf3Field;
        [OptionalField]
        private string Udf4Field;
        [OptionalField]
        private string Udf5Field;
        [OptionalField]
        private string UpdatedByField;
        [OptionalField]
        private DateTime UpdatedDateField;
        [OptionalField]
        private string WhIDField;

        public event PropertyChangedEventHandler PropertyChanged;

        protected void RaisePropertyChanged(string propertyName)
        {
            PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
            if (propertyChanged != null)
            {
                propertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        [DataMember]
        public string CreatedBy
        {
            get
            {
                return this.CreatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CreatedByField, value))
                {
                    this.CreatedByField = value;
                    this.RaisePropertyChanged("CreatedBy");
                }
            }
        }

        [DataMember]
        public DateTime CreatedDate
        {
            get
            {
                return this.CreatedDateField;
            }
            set
            {
                if (!this.CreatedDateField.Equals(value))
                {
                    this.CreatedDateField = value;
                    this.RaisePropertyChanged("CreatedDate");
                }
            }
        }

        [Browsable(false)]
        public ExtensionDataObject ExtensionData
        {
            get
            {
                return this.extensionDataField;
            }
            set
            {
                this.extensionDataField = value;
            }
        }

        [DataMember]
        public string FromOwnerID
        {
            get
            {
                return this.FromOwnerIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.FromOwnerIDField, value))
                {
                    this.FromOwnerIDField = value;
                    this.RaisePropertyChanged("FromOwnerID");
                }
            }
        }

        [DataMember]
        public string GenIsInCharges
        {
            get
            {
                return this.GenIsInChargesField;
            }
            set
            {
                if (!object.ReferenceEquals(this.GenIsInChargesField, value))
                {
                    this.GenIsInChargesField = value;
                    this.RaisePropertyChanged("GenIsInCharges");
                }
            }
        }

        [DataMember]
        public string GenOtCharges
        {
            get
            {
                return this.GenOtChargesField;
            }
            set
            {
                if (!object.ReferenceEquals(this.GenOtChargesField, value))
                {
                    this.GenOtChargesField = value;
                    this.RaisePropertyChanged("GenOtCharges");
                }
            }
        }

        [DataMember]
        public string IsActive
        {
            get
            {
                return this.IsActiveField;
            }
            set
            {
                if (!object.ReferenceEquals(this.IsActiveField, value))
                {
                    this.IsActiveField = value;
                    this.RaisePropertyChanged("IsActive");
                }
            }
        }

        [DataMember]
        public decimal OpenQty
        {
            get
            {
                return this.OpenQtyField;
            }
            set
            {
                if (!this.OpenQtyField.Equals(value))
                {
                    this.OpenQtyField = value;
                    this.RaisePropertyChanged("OpenQty");
                }
            }
        }

        [DataMember]
        public string Remark
        {
            get
            {
                return this.RemarkField;
            }
            set
            {
                if (!object.ReferenceEquals(this.RemarkField, value))
                {
                    this.RemarkField = value;
                    this.RaisePropertyChanged("Remark");
                }
            }
        }

        [DataMember]
        public int RowID
        {
            get
            {
                return this.RowIDField;
            }
            set
            {
                if (!this.RowIDField.Equals(value))
                {
                    this.RowIDField = value;
                    this.RaisePropertyChanged("RowID");
                }
            }
        }

        [DataMember]
        public string Status
        {
            get
            {
                return this.StatusField;
            }
            set
            {
                if (!object.ReferenceEquals(this.StatusField, value))
                {
                    this.StatusField = value;
                    this.RaisePropertyChanged("Status");
                }
            }
        }

        [DataMember]
        public string ToOwnerID
        {
            get
            {
                return this.ToOwnerIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ToOwnerIDField, value))
                {
                    this.ToOwnerIDField = value;
                    this.RaisePropertyChanged("ToOwnerID");
                }
            }
        }

        [DataMember]
        public DateTime TransferDate
        {
            get
            {
                return this.TransferDateField;
            }
            set
            {
                if (!this.TransferDateField.Equals(value))
                {
                    this.TransferDateField = value;
                    this.RaisePropertyChanged("TransferDate");
                }
            }
        }

        [DataMember]
        public List<TransferDetailInfo> TransferDetailInfos
        {
            get
            {
                return this.TransferDetailInfosField;
            }
            set
            {
                if (!object.ReferenceEquals(this.TransferDetailInfosField, value))
                {
                    this.TransferDetailInfosField = value;
                    this.RaisePropertyChanged("TransferDetailInfos");
                }
            }
        }

        [DataMember]
        public string TransferID
        {
            get
            {
                return this.TransferIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.TransferIDField, value))
                {
                    this.TransferIDField = value;
                    this.RaisePropertyChanged("TransferID");
                }
            }
        }

        [DataMember]
        public string TransferType
        {
            get
            {
                return this.TransferTypeField;
            }
            set
            {
                if (!object.ReferenceEquals(this.TransferTypeField, value))
                {
                    this.TransferTypeField = value;
                    this.RaisePropertyChanged("TransferType");
                }
            }
        }

        [DataMember]
        public byte[] Ts
        {
            get
            {
                return this.TsField;
            }
            set
            {
                if (!object.ReferenceEquals(this.TsField, value))
                {
                    this.TsField = value;
                    this.RaisePropertyChanged("Ts");
                }
            }
        }

        [DataMember]
        public string Udf1
        {
            get
            {
                return this.Udf1Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf1Field, value))
                {
                    this.Udf1Field = value;
                    this.RaisePropertyChanged("Udf1");
                }
            }
        }

        [DataMember]
        public string Udf2
        {
            get
            {
                return this.Udf2Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf2Field, value))
                {
                    this.Udf2Field = value;
                    this.RaisePropertyChanged("Udf2");
                }
            }
        }

        [DataMember]
        public string Udf3
        {
            get
            {
                return this.Udf3Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf3Field, value))
                {
                    this.Udf3Field = value;
                    this.RaisePropertyChanged("Udf3");
                }
            }
        }

        [DataMember]
        public string Udf4
        {
            get
            {
                return this.Udf4Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf4Field, value))
                {
                    this.Udf4Field = value;
                    this.RaisePropertyChanged("Udf4");
                }
            }
        }

        [DataMember]
        public string Udf5
        {
            get
            {
                return this.Udf5Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf5Field, value))
                {
                    this.Udf5Field = value;
                    this.RaisePropertyChanged("Udf5");
                }
            }
        }

        [DataMember]
        public string UpdatedBy
        {
            get
            {
                return this.UpdatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.UpdatedByField, value))
                {
                    this.UpdatedByField = value;
                    this.RaisePropertyChanged("UpdatedBy");
                }
            }
        }

        [DataMember]
        public DateTime UpdatedDate
        {
            get
            {
                return this.UpdatedDateField;
            }
            set
            {
                if (!this.UpdatedDateField.Equals(value))
                {
                    this.UpdatedDateField = value;
                    this.RaisePropertyChanged("UpdatedDate");
                }
            }
        }

        [DataMember]
        public string WhID
        {
            get
            {
                return this.WhIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.WhIDField, value))
                {
                    this.WhIDField = value;
                    this.RaisePropertyChanged("WhID");
                }
            }
        }
    }
}

